<template>
  <div class="petdetail_swiper" v-if="img">
    <!--    <Swiper autoplay="5000" :show_indicators="indicators">-->
    <!--      <van-swipe-item>-->
    <!--        <img src="../../../assets/logo.png" />-->
    <!--      </van-swipe-item>-->
    <!--      <van-swipe-item>-->
    <!--        <img src="../../../assets/logo.png" />-->
    <!--      </van-swipe-item>-->
    <!--    </Swiper>-->
    <img :src="img" />
  </div>
</template>

<script>
// import Swiper from "@/components/carousel/Swiper";
import { ref } from "vue";
export default {
  name: "PetDetailSwiper",
  props: ["img"],
  // components: { Swiper },
  setup() {
    const indicators = ref(true);
    return {
      indicators,
    };
  },
};
</script>

<style scoped lang="less">
.petdetail_swiper {
  width: 100%;
  height: 15rem;
  box-sizing: border-box;
  overflow: hidden;
  background-color: #ffffff75;
  //border: 1px solid red;
  img {
    height: 100%;
    //max-width: 100%;
    margin-left: 50%;
    transform: translateX(-50%);
  }
}
</style>
